const express = require('express')

const app =express()

app.use((req, res, next) => {
    console.log(new Date())
    next()
})

app.get('/haha', (req, res) => {
    console.log('哈哈')
})

app.use('/admin', (req, res) => {
    res.write(req.originalUrl + '\n')
    res.write(req.baseUrl + '\n')
    res.write(req.path+ '\n')
    res.end('你好')
})

app.listen(3000)